]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
system: Fix visibility of suspend button
authorFlorian Müllner <fmuellner@gnome.org>
Wed, 4 Feb 2015 11:01:47 +0000 (12:01 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Wed, 4 Feb 2015 11:03:18 +0000 (12:03 +0100)
It depends on the availability of suspend, not shutdown ...

js/ui/status/system.js

index a2ad289ef274c1c4749bc3d7384de5336e1be7e4..b053694036c69f3ecbcda9322f6b640c11c87953 100644 (file)
@@ -285,7 +285,7 @@ const Indicator = new Lang.Class({
         let disabled = Main.sessionMode.isLocked ||
                        (Main.sessionMode.isGreeter &&
                         this._loginScreenSettings.get_boolean(DISABLE_RESTART_KEY));
-        this._suspendAction.visible = this._haveShutdown && !disabled;
+        this._suspendAction.visible = this._haveSuspend && !disabled;
         this._updateActionsVisibility();
     },